package com.joven.internet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author joven_wong
 * 2021/6/10 17:11
 */
@Data
@ToString
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Account implements Serializable {

    @TableId(type = IdType.AUTO) //主键自增 数据库中需要设置主键自增
    private Long id;
    private String name;
    private String accountNo;
    private int score;
}
